<?php
/**
 * 功能: 微信客服
 * User: WD
 * Date: 2018/9/11 0011
 * Time: 16:08
 */

namespace app\index\controller;
use think\Controller;
use think\Db;

class Waiter extends Controller{
    /**
     * 微信客服
     */
    public function index(){
        $res = Db::name('waiter')->find();
        if($res){
            return json(['msg'=>'请求成功','ok'=>true,'data'=>$res]);
        }else{
            return json(['msg'=>'暂无数据','ok'=>false]);
        }

    }

}